<template>
  <div class="app">
    <van-nav-bar
      :title="title"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />

    <router-view></router-view>

    <van-tabbar v-model="active">
      <van-tabbar-item icon="phone-o" to="/huaf">话费</van-tabbar-item>
      <van-tabbar-item icon="search" to="dianf">电</van-tabbar-item>
      <van-tabbar-item icon="balance-list-o" to="mylist">订单查询</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="kefu">客服</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data(){
    return {
      active: 0,
      title:"首页"

    }
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1)
    }
  }
}
</script>
<style >
</style>